<template>
  <div class="container">
    <div class="carousel_box">
      <Carousel />
    </div>
    <div class="grid_box w_container">
      <ZGrid />
    </div>
    <div class="temps_box w_container">
      <Temps />
    </div>
    <div class="plugins_box w_container">
      <Pugs />
    </div>
    <div class="rapid_box w_container">
      <Rapid />
    </div>
  </div>
</template>

<script>
import Carousel from "@/components/carousel/index";
import ZGrid from "@/components/zgrid/index";
import Temps from "@/components/temps/index";
import Pugs from "@/components/pugs/index";
import Rapid from "@/components/rapid/index";
import Api from '@/api'

export default {
  components: {
    Carousel,
    ZGrid,
    Temps,
    Pugs,
    Rapid,
  },
  asyncData ({ store }) {
  },
  mounted () {
    // this.getUserInfo()
  },
  methods: {
    getUserInfo () {
      let that = this;
      console.log(that.$store)
      Api.getUserInfo(that.$axios, { id: 1 }).then(res => {
        if (res.status == 200) {

        }
      })
    }
  }
};
</script>

<style lang="scss" scoped>
.container {
  margin: 0 auto 80px;
  min-height: 80vh;
  .carousel_box {
    width: 100%;
    display: block;
  }
  .grid_box {
    margin-top: 50px;
  }
  .temps_box {
    margin-top: 50px;
  }
  .plugins_box {
    margin-top: 50px;
  }
  .rapid_box {
    margin-top: 50px;
  }
}
</style>
